package com.sojson.util.security.shiro.interceptor;

import org.apache.shiro.aop.AnnotationResolver;
import org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor;

import com.sojson.util.security.shiro.interceptor.impl.LoginAnnotationHandler;

public class LoginAnnotationMethodInterceptor extends AuthorizingAnnotationMethodInterceptor {

    public LoginAnnotationMethodInterceptor() {
        super(new LoginAnnotationHandler());
        System.out.println("拦截器:LoginAnnotationMethodInterceptor:LoginAnnotationMethodInterceptor");
    }

    /**
     * 主要方法
     * 
     * @param resolver
     */
    public LoginAnnotationMethodInterceptor(AnnotationResolver resolver) {
        super(new LoginAnnotationHandler(), resolver);
        System.out.println("拦截器:LoginAnnotationMethodInterceptor:LoginAnnotationMethodInterceptor");
    }

}